package com.lp.common.component;

import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.auth.sts.AssumeRoleResponse;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.auth.sts.AssumeRoleRequest;
import com.lp.common.exception.BaseException;
import com.lp.common.exception.ErrorCodeEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @program: backend
 * @description:
 * @author: Ke.Song
 * @since: 2024-05-29 21:10:59
 */
@Slf4j
@Component
public class OssService {

    @Value("${ali.sts.arn}")
    private String arn;

    @Value("${ali.sts.sessionName}")
    private String sessionName;

    @Value("${ali.sts.durationSeconds}")
    private Long durationSeconds;

    @Autowired
    private DefaultAcsClient acsClient;

}
